package com.example.demo.demos.web.ehcache;

import org.ehcache.event.CacheEvent;
import org.ehcache.event.CacheEventListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ListenerObject implements CacheEventListener {
    Logger log = LoggerFactory.getLogger(ListenerObject.class);

    @Override
    public void onEvent(CacheEvent event) {
        log.info("event:" + event.getType().name() + ",key:" + event.getKey());
    }
}
